import Vue from 'vue';
import axios from 'axios';
import {
    Breadcrumb,
    Button,
    Table,
    Icon,
    Input,
} from 'ant-design-vue';

// 1. 引入公共样式表.
import '@/assets/css/actuator.scss';

// 2. 引入组件及路由.
import App from './App.vue';
import router from './router/index.js';
import store from './store/index.js';

// 3. 全局配置.
Vue.config.productionTip = false;

axios.defaults.baseURL = 'http://192.168.9.77:8088/pi-actuator-service';

Vue.component(Breadcrumb.name, Breadcrumb);
Vue.component(Breadcrumb.Item.name, Breadcrumb.Item);
Vue.component(Button.name, Button);
Vue.component(Button.Group.name, Button.Group);
Vue.component(Table.name, Table);
Vue.component(Icon.name, Icon);
Vue.component(Input.name, Input);

new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount('#app');
